#### Replicate all files ####

#The following packages have to be installed
#•	tidyverse (1.3.1)
#•	quanteda (3.1.0)
#•	xtable (1.8.4)
#•	corrplot (0.90)
#•	fastDummies (1.6.3)
#•	ggcorrplot (0.1.3)
#•	brglm (0.7.2)
#•	sandwich (3.0-1)
#•	lmtest (0.9-38)
#•	margins (0.3.26)
#•	arm (1.11-2)
#•	texreg (1.37.5)
#•	parallel (4.1.1)
#Pkgs. are loaded in every single script

#The complete replication takes around 3 hours and 40 minutes


#Generates the descriptives for the dependent variable “DoS attacks”
source("scripts/descriptives_dos.R")

#Generates the descriptives for the independent variables “news topics”
source("scripts/descriptives_text.R")

#Replicates the main analysis and most of the robustness tests
source("scripts/analysis.R")

#Replicates additional robustness tests that use a permutation approach (Note: requires to run the analysis.R script before, draws changed to 1000 to speed up things)
source("scripts/robustness_permutation.R")

#Replicates additional robustness tests that use 100 topics as independent variables
source("scripts/robustness_100.R")



